<link type="text/css" rel="stylesheet" href="$!basePath/framework/plugins/jsmind/jsmind.css" />
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h4 class="modal-title">组织架构-结构图</h4>
</div>
<div class="modal-body">
    <div id="unitChart" style="width: 100%;height:500px;">

    </div>
</div>
<script src="$!basePath/framework/plugins/jsmind/jsmind.js"></script>
<script>
    $(function(){
        var mind = {
            "meta":{
                "name":"unit_chart",
                "author":"jrelax",
                "version":"0.2",
            },
            "format":"node_array",
            "data":[
                {"id":"-1", "isroot":true, "topic":"组织机构"},
                #foreach($!obj in $!list)
                {"id":"$!obj.id", "parentid":"$!obj.parentId", "topic":"$!{obj.name}#if($!obj.system)(系统)#end"},
                #end
            ]
        };
        var options = {
            container:'unitChart',
            theme:'primary'
        }
        var jm = jsMind.show(options,mind);
    });
</script>